From: | Andrew Markwell |
Date: | 01 Aug 99 at 23:03:19 |
Subject: | AvailFonts() |
From: Andrew Markwell <andrewmarkwell@ukonline.co.uk>
Heya,
Has anyone else had any problems with diskfont.library/AvailFonts()? My
compiler is behaving erratically with it, and when it does compile it freezes on
calling it.
For a start the prototype in clib/diskfont_protos.h is different(!) to the one
in the RKM's and the Autodocs.
The one in the Autodocs looks like this:
LONG AvailFonts(AvailFontsHeader *mybuffer, LONG bufBytes, LONG flags);
and in the the protos:
LONG AvailFonts(STRPTR mybuffer, LONG bufBytes, LONG flags);
This isn't too hard to understand given that the first and only field in
AvailFontsHeader is a pointer to a UBYTE. But as I use C++ it complains about
this and I've had to modify the prototype.
Success for compiling this seems to be an arbitrary thing... sometimes it will,
sometimes it will not. And when it does compile it just freezes after the call
to the function.
Has anyone else had any problems with it? The RKM examples seem to work fine,
also, it won't compile at all when called from a C++ class method, complaining
about a type mismatch. I think maybe there is a clash with something else in
the program bt I'm damed if I can find anything.
Andrew Markwell